package com.lq.ecoldchain.ui.main.orderlist.orderover

import org.kodein.di.Kodein
import org.kodein.di.android.support.AndroidLifecycleScope
import org.kodein.di.generic.bind
import org.kodein.di.generic.instance
import org.kodein.di.generic.scoped
import org.kodein.di.generic.singleton

/*
*2019/1/17 0017  19:31
*function by lq
*/
val orderOverKodeinModule = Kodein.Module("Over_Order_Kodein_Module"){
    bind<OrderOverViewModel>() with scoped(AndroidLifecycleScope).singleton {
        OrderOverViewModel()
    }

    bind<OrderOverDelegate>() with scoped(AndroidLifecycleScope).singleton {
        OrderOverDelegate(instance())
    }
}